Page({
    data: {
      activeTab: 'scenic', // 默认选中的标签
      scenicList: [
        { id: 1, name: '景点1' },
        { id: 2, name: '景点2' },
        { id: 3, name: '景点3' },
        { id: 4, name: '景点4' }
      ],
      noteList: [
        { id: 1, title: '笔记1' },
        { id: 2, title: '笔记2' },
        { id: 3, title: '笔记3' },
        { id: 4, title: '笔记4' }
      ]
    },
  
    onTabChange(event) {
      const tab = event.currentTarget.dataset.tab; // 获取点击的标签名
      this.setData({
        activeTab: tab // 更新当前选中的标签
      });
  
      console.log('当前选中的标签:', tab);
    },
  
    onLoad: function (options) {
      console.log('页面加载完成');
    }
  });